home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 001 / pctb.mac < prev    next >
Text File  |  1985-05-29  |  14KB  |  331 lines

  1.  
  2.  
  3.  
  4.       Revised 2/15/85 
  5.  
  6.  
  7.                              SOME PC-TALK VERSION B MACROS 
  8.  
  9.       The PC-TALK version B has macro capabilities which give it a lot more 
  10.       power than the original version.  Jim Gainsley has made a quite drastic 
  11.       improvement in the program and to understand this doc file fully, you 
  12.       should have already read PC-TALKB.DOC and particularly the section 
  13.       regarding macros.  When reading the file, pay particular attention to 
  14.       the different type of macros available. Jim has just added a type 5 
  15.       macro which eliminates most of the manual pacing which was required in 
  16.       PC-TalkA level 841130. 
  17.  
  18.       Among some of PC-TalkB's macro features are: 
  19.  
  20.       The ability to wait for a character and send a string of characters, 
  21.       i.e. wait for ! and send a GO PCS-131.  Note that PC-TalkB can only wait 
  22.       for one character, and not a string of characters.  Thus when choosing a 
  23.       character to key off of, it is very important to choose the right one. 
  24.  
  25.       Timed Pacing:
  26.            While executing macros, it is possible to have the macro pause in 
  27.            places in which CIS has pauses, e.g. Request Recorded, One Moment 
  28.            Please.  Timed pacing is necessary with PC-TalkB because CIS 
  29.            frequently cannot accept the transmission when PCTB is sending it.  
  30.            If you do not have the pacing down correctly, you may experience 
  31.            transmission errors.  PC-TalkB will then give the message, 
  32.            "***MACRO TERMINATED***" message. 
  33.  
  34.       Execute PC-TALK Commands:  
  35.            Commands such as open a capture file, call an alternate key input 
  36.            file, and clear the screen may be programmed into a macro.  This is 
  37.            an extremely nice offering as it is now possible to capture a file 
  38.            without specifying a name. This is done via an Alt key file and 
  39.            will be explained in a sample macro below.  In this release of PC-
  40.            TALK, he has also added a PC-TALK.ALT file which if present is 
  41.            loaded as a default alt key file.  You no longer have to interrupt 
  42.            your macro to specify an alt key filename. 
  43.  
  44.       Lastly, you can write macros which can execute a series of commands 
  45.       including accepting variable input fields.  With this much power, it is 
  46.       almost possible to do a unattended download.  Only thing which prevents 
  47.       it from being unattended is the fact that you cannot execute a macro at 
  48.       a particular time of day. 
  49.  
  50.       The following are some of my macros which I use for the IBM sig: 
  51.  
  52.       *********************************************************************** 
  53.       PLEASE NOTE:  Any references to asciixx (where "xx" is a two digit 
  54.       number) requires that you must enter the ascii value inside of your PCTA 
  55.       macro by holding the alt key down and entering the "xx" value via the 
  56.       numeric keypad. If you have ProKey, then you must hold down the Alt 
  57.       *and* Left Shift key. After entering the number, effect is given upon 
  58.       release of the key(s). 
  59.       *********************************************************************** 
  60.  
  61.  
  62.  
  63.                                          1
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.                 1001|2O~^C|2:70000,0000}|2:pass*word}|2S^PG PCS131} 
  71.  
  72.  
  73.       This first macro simply logs me onto the sig. 1001 is a type 1 macro 
  74.       which simply dials directory number 1.  It just so happens that CIS is 
  75.       the first entry in my PCTB directory. 
  76.  
  77.       The |20~^C portion of the macro, a #2 macro, waits for a 0 in CONNECT 
  78.       1200. The tilde informs PC-TalkB to wait 3 seconds before sending a 
  79.       control C. Notice that for illustrative purposes, control C has been 
  80.       pictured as ^C. The ^ means the Control key.  You should actually hold 
  81.       the control key down and press C once. 
  82.  
  83.       NOTE:  This option may not work unless you set the X1 parameter in the 
  84.       PC-TalkB Default file under "Modem Init".  (Alt-F in terminal mode.)  To 
  85.       do this, simply type ATX1.  (Sorry, only Hayes compatible modems may use 
  86.       the AT command.)  This allows you to see the message CONNECT 1200 rather 
  87.       than just CONNECT.  If you can't get this portion to work, try waiting 
  88.       for the "T" in CONNECT instead,  e.g. |2T~^C.  (The reason I key off of 
  89.       the "0" in 1200 instead of the "T" in CONNECT is to let the Hayes settle 
  90.       down a bit.  The macros seem to work much better if this parameter is 
  91.       entered.) 
  92.  
  93.       |2:70000,0000}|2:pass*word} is pretty much self explanatory. The type 2 
  94.       macro waits for a character and sends a string of characters.  In this 
  95.       case, we are waiting for the ":" in "User Id:" and sending the CIS 
  96.       account number.  The "}" represents a carriage return and should be 
  97.       entered as such in the Alt-K macro section. 
  98.  
  99.       |2S^PG PCS131} is another type 2 macro.  I wait for the capital S in 
  100.       CompuServe and send a control P.  Once again, notice that I am using the 
  101.       ^ symbol for the control key.  Use the control key and hold down P 
  102.       instead of entering the carat symbol. 
  103.  
  104.       The CIS ^P interrupt is used to bypass both the 1200 baud message and 
  105.       the CIS-1 main menu.  It is an extremely quick method for logging into 
  106.       the sig.  After all, these macros are designed to save CIS connect time.
  107.       Upon sending the interrupt, G PCS131 is sent.  G PCS131 is an 
  108.       abbreviation for GO PCS-131. If you happen to be a regular member of the 
  109.       INF, substitute G PCS129 instead. 
  110.  
  111.                1001|20~^C|2:70000,0000}|2:pass*word}|2S^PG PCS131}|2:~ 
  112.                |3R|48|5RTN}}}}}OFF}|2(ascii04)~(esc)|2E~Another successful 
  113.                download!!!! 
  114.  
  115.       The first portion of this macro has been explained in the previous macro.
  116.  
  117.       |2:~|3R|48 waits for the ":" in "Function:".  It then does a 3 second 
  118.       pause pause, opens a file (type 3 macro executes a PC-TALK command), and 
  119.       calls the filename from the Alt-8 position of the alt key file which was 
  120.       originally defined in a PC-TALK.ALT file.  It then performs a type 5 
  121.       macro which sends the string "RTN".  The type 5 macro has just been 
  122.       added to this release of PC-TalkB.  Previously you had to perform a type 
  123.       2 macro and a 3 second pause to start a macro from a standstill.  The 
  124.       type 5 macro has eliminated the need for this. 
  125.  
  126.  
  127.  
  128.  
  129.                                          2
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.       After sending the "RTN", five carriage returns are pumped into the 
  137.       buffer. This is done to skip past any "(UA RE T):" messages which are 
  138.       present with marked messages waiting for you.  Please keep in mind that 
  139.       in order to have these macros work effectively, you need to set your sig 
  140.       options (OP at the Function: prompt to non-stop (NS) and brief (BR)). 
  141.  
  142.       If you are an active member, you may need to enter more than 5 carriage 
  143.       returns.  Sysops typically have to enter at least 10 to allow them to 
  144.       download without monitoring its progress.  After PCTB sends its carriage 
  145.       returns, the macro sends an "OFF".  This simply sends an OFF at the 
  146.       Function: prompt. It is very well possible that you send more carriage 
  147.       returns then messages received. If this is the case, the extra returns 
  148.       will be sent at the "Function:" prompt. This will not do any harm. 
  149.  
  150.       With all of this in mind, you now have the luxury of getting up and 
  151.       making yourself a nice hot pot of coffee instead of monitoring your 
  152.       thread download. 
  153.  
  154.       ALT KEY FILES 
  155.  
  156.       The main use (for me) of using Alt key files is to store filenames and 
  157.       various ppn's.  The purpose of the type 3 and 4 macro combination is to 
  158.       allow you to capture a file to diskette without specifying a filename.  
  159.       This is just one extra goody that Jim has provided us.  Other Alt keys I 
  160.       find quite helpful are cat *.*}, cat/des}, and cat/age=}.  The } symbol 
  161.       represents a carriage return. 
  162.  
  163.       The next portion |2(ascii04)~(esc) works on the Smartmodem. Whether it 
  164.       works on other modems, I'm not sure.  As PCTB drops comm from 
  165.       CompuServe, it receives an ascii04 (looks like a solid diamond).  The 
  166.       (esc) key closes the capture file currently open.  I have used this as 
  167.       the character I key off of.  I am however relying that the fellow 
  168.       members of this sig do not enter this charac- ter in any of their 
  169.       messages.  If such is the case, the macro will end prematurely. 
  170.  
  171.       NOTE 1:   ascii04 must be entered by holding down the Alt key and 
  172.                 pressing "04" (without quotes) on the numeric keypad. (Prokey 
  173.                 must be de-activated) 
  174.  
  175.       NOTE 2:   Waiting for unusual ascii characters such as ascii04 has 
  176.                 unpredictable  results with certain versions of Sidekick. 
  177.  
  178.       Finally the last portion of the macro is my dry sense of humor. I was so
  179.       happy getting the macro to work consistently, I added the message 
  180.       "Another successful download!!!".  This message is keyed off of the 
  181.       "E" in "NO CARRIER".  To each his own <grin>. You'll like the 
  182.       tune it plays at the end of the macro!!!
  183.  
  184.  
  185.       DL DATABASE MACROS  
  186.  
  187.     |5DOW |2(ascii31)/PROT:CAPTURE/TYP:ASCII}|2(ascii18)~|3R|2(ascii20)~(esc)
  188.  
  189.       This macro is used for capturing ascii text files or basic files stored 
  190.       in ascii.  Make sure you are at the DLn: prompt before executing this 
  191.       macro. 
  192.  
  193.  
  194.  
  195.                                          3
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.       |5DOW |2(ascii31) - The macro begins with the newly added type 5 macro.  
  203.       As mentioned before, a type 5 is used to start a macro from a dead 
  204.       standstill, i.e. at a "DLn" or "Function:" prompt.  This portion of the 
  205.       macro then waits for ascii31.  Ascii 31, as Jim describes in the manual, 
  206.       is used for variable input fields.  PCTB will wait for something which 
  207.       it will never receive.  Thus you may then enter a variable length field 
  208.       and have the macro continue by entering the { symbol.  In case you 
  209.       forget to enter this symbol, PCTB will remind you that you have this 
  210.       option available to you on line 25 of your screen. 
  211.  
  212.       /PROT:CAPTURE/TYP:ASCII} is the syntax used for downloading ascii files 
  213.       in the capture mode.  Note that if you try downloading a binary file 
  214.       with this method, you will receive it in Intel hex.  You will then need 
  215.       CVTBIN.COM to convert it. 
  216.  
  217.       |2(ascii18}~|3R will have PCTB wait for ascii18 which is what CIS gives 
  218.       you to key off of to begin your capture.  Thus PCTB will catch the 
  219.       ascii18, pause for 3 seconds and open a file.  You must then specify the 
  220.       filename you wish to name it.   I suppose you could call the filename 
  221.       from a type 4 macro and call it something like temp and rename it, but I 
  222.       decided against it for the reason that you may forget to rename the file 
  223.       after you receive it. 
  224.  
  225.       NOTE:   ascii18 looks like a twin sided arrowhead in terminal mode and a 
  226.               "R" in the Alt-K section. |2(ascii20}~(esc) will find the 
  227.               symbol, pause and then close the file.  Pacing is necessary for 
  228.               opening and closing the files to prevent PCTB from term- inating 
  229.               the macro in progress.  You now have downloaded an ascii file 
  230.               quickly and painlessly! 
  231.  
  232.       NOTE:   ascii20 looks like a paragraph symbol in terminal mode and a "T" 
  233.               in the Alt-K section. 
  234.  
  235.  
  236.                         |5DOW |2(ascii31)/PROT:XMODEM/TYP:BINARY} 
  237.  
  238.  
  239.       This macro operates in the same fashion as the above macro; the 
  240.       exception being that this downloading method is for binary files.  
  241.       Binary files include exe, com, lbr, and dqc files.  Basically, anything 
  242.       which is not a straight ascii file should be downloaded in binary.  The 
  243.       advantage of an xmodem down- load is that a "hit" is not as likely to 
  244.       interrupt your download.  I'm sure that a lot of you have downloaded hex 
  245.       files in ascii, only to have a "hit" destroy everything. 
  246.  
  247.       Please note that this macro is not as automatic as the previous one.  
  248.       Once you receive the "Starting xmodem transfer..." message, you must 
  249.       physically open the file (Alt-R) and specify its filename.  Fortunately, 
  250.       PCTB will automat- ically close it for you upon completion.  Upon 
  251.       receiving the "eof verified" message, hit the carriage return once to 
  252.       bring you back to the DL prompt. 
  253.  
  254.       Hopefully, this will give you some insight to design macros for your own 
  255.       personal use.  Please note that I do not guarantee the accuracy of these 
  256.       macros and do not accept responsibility should these macros get you 
  257.       blown off of the system.  They consistently work for me.  My equipment 
  258.       includes an IBM PC w/ 640K, hard disk and a Hayes Smartmodem 1200.  
  259.  
  260.  
  261.                                          4
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.       I am accessing CIS through a direct node.  I'm not quite certain of the 
  269.       results through a network.  Should these macros work on other systems, I 
  270.       would be very happy if you could let either me or one of the Sysops 
  271.       know.  Enjoy...
  272.  
  273.       Bryan Tsunoda
  274.       Computer-ease
  275.       [70251,202]
  276.  
  277.  
  278.  
  279.  
  280.  
  281.  
  282.  
  283.  
  284.  
  285.  
  286.  
  287.  
  288.  
  289.  
  290.  
  291.  
  292.  
  293.  
  294.  
  295.  
  296.  
  297.  
  298.  
  299.  
  300.  
  301.  
  302.  
  303.  
  304.  
  305.  
  306.  
  307.  
  308.  
  309.  
  310.  
  311.  
  312.  
  313.  
  314.  
  315.  
  316.  
  317.  
  318.  
  319.  
  320.  
  321.  
  322.  
  323.  
  324.  
  325.  
  326.  
  327.                                          5
  328.  
  329.  
  330.  
  331.